#!/usr/bin/python3.7
# -*- coding: utf-8 -*-
# @Time    : 2021/3/8 3:31 下午
# @Author  : 白辉东
# @Email   : xyxk-huidong.bai@ximalaya.com
# @File    : query.py
# @Software: PyCharm

class Query(object):
    """
    Query实体类
    """

    def __init__(self, data):
        self.__qid = data['qid']
        self.__module = data['module']
        self.__title = data['title']
        self.__query = data['query']
        self.__asert_domain = data['asert_domain']
        self.__asert_intent = data['asert_intent']
        self.__tts = data['tts']
        self.__tts_start_tag = data['tts_start_tag']
        self.__play_url_tag = data['play_url_tag']
        self.__speaker_action = data['speaker_action']

    @property
    def qid(self):
        return self.__qid

    @property
    def module(self):
        return self.__module

    @property
    def title(self):
        return self.__title

    @property
    def query(self):
        return self.__query

    @property
    def asert_domain(self):
        return self.__asert_domain

    @property
    def asert_intent(self):
        return self.__asert_intent

    @property
    def tts_start_tag(self):
        return self.__tts_start_tag

    @property
    def play_url_tag(self):
        return self.__play_url_tag

    @property
    def speaker_action(self):
        return self.__speaker_action

    @property
    def tts(self):
        return self.__tts
